<template>
	<!-- 家政服务项目 列表 -->
	<view>
		<view class="lists">
			<view class="list" v-for="(item,index) in 8" :key='index'>
				<view class="left">
					<image src="../../static/shop/1595657049599668876.jpg" mode=""></image>
				</view>
				<view class="right">
					<!-- 标题 -->
					<view class="tit">
						日常家居保洁3小时
					</view>
					<!-- 次数 -->
					<view class="num">
						已抢77次
					</view>
					<!-- 金额 -->
					<view class="money">
						<view class="">
							￥149 <text class="span">/3小时</text>
						</view>
						<!-- 原价 横线 -->
						<view class="money1">
							￥245
						</view>
					</view>
					<!-- 购买 -->
					<view class="buy">
						去购买
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "homeList",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.lists {
		background-color: #FFFFFF;
		border-radius: 15rpx;
		.list {
			display: flex;

			.left {
				padding: 30rpx;

				image {
					width: 200rpx;
					height: 200rpx;
				}
			}

			.right {
				position: relative;
				padding: 30rpx 0;
				width: 60%;

				.tit {
					height:80rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					font-size: 30rpx;
					font-weight: 550;
				}

				.num {
					color: #999999;
				}

				.money {
					display: flex;
					color: #FFA911;
					margin-top: 40rpx;
					font-size: 26rpx;
					.span {
						color: #b9b9b9;
					}

					.money1 {
						margin-left: 10rpx;
						color: #999999;
						font-size: 28rpx;
						text-decoration: line-through
					}
				}

				.buy {
					position: absolute;
					right: 10rpx;
					bottom: 45rpx;
					width: 130rpx;
					height: 60rpx;
					font-size: 28rpx;
					background-color: #FFA911;
					border-radius: 50rpx;
					text-align: center;
					line-height: 60rpx;
				}
			}
		}
	}
</style>
